package sum.Service.Impl;

import org.springframework.stereotype.Service;
import sum.Dao.UserDao;
import sum.Entity.User;
import sum.Service.UserService;

import javax.annotation.Resource;
import java.util.List;

@Service("UserService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    @Override
    public User check(User user) {
        return userDao.check(user);
    }
    @Override
    public int adduser(User user) {
        return userDao.adduser(user);
    }
    @Override
    public User checkusername(String username) {
        return userDao.checkusername(username);
    }
    @Override
    public  int changepwd(User user) {return  userDao.changepwd(user);}
    @Override
    public int deleteByName(String username)
    {
        return userDao.deleteByName(username);
    }
    @Override
    public int edit(User user){return userDao.edit(user);}
    @Override
    public List<User> queryByConditions(User user)
    {
        return userDao.queryByConditions(user);
    }
}
